package multithreading.homework.suck;

public class Myrunnable implements Runnable{
    private int nunber=1;
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            synchronized (this){
                System.out.println(this);
            System.out.println(Thread.currentThread().getName() +"      "+nunber++);
                }
        }
    }
}
